<template>
  <div class="backgroundGrey" style="background-color: #fff">
      <div class="layer news-list news-list-index">
        <div class="lay-title">
          <div class="tit">新闻资讯</div>
          <div class="tip">让价值共享 聚焦企业实时动态</div>
        </div>
        <div class="contain">
          <dp-Newlist :key="$route.name"></dp-Newlist>
        </div>
      </div>
  </div>
</template>

<script>
  import newlist  from './newslist'
  export default {
    components:{
      'dp-Newlist': newlist
    },
    watch: {
      '$route' (to, from) {
        console.log($route)
      }
    }
  }
</script>

<style>
  .news-list {
    padding: 30px 0 30px
  }

  .news-list ul {
    display: flex;
    flex: auto;
    flex-direction: row;
  }

  .news-list ul>li {

    margin: 10px;
    overflow: hidden;
    float: left;
    border: 1px solid #ededed
  }

  .news-list ul>li a {
    display: block;
    color: #666
  }

  .news-list ul>li .img {
    margin: -1px;
    overflow: hidden
  }

  .news-list ul>li .img img {
    display: block;
    -webkit-transition: all 1s ease-in-out;
    -moz-transition: all 1s ease-in-out;
    -o-transition: all 1s ease-in-out;
    transition: all 1s ease-in-out
  }

  .news-list ul>li .img:hover img {
    -webkit-transform: scale(1.1);
    -moz-transform: scale(1.1);
    -ms-transform: scale(1.1);
    -o-transform: scale(1.1);
    transform: scale(1.1)
  }

  .news-list ul>li .info {
    padding: 20px 20px 0
  }

  .news-list ul>li .tit {
    font-size: 20px;
    line-height: 20px;
    margin-bottom: 10px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    -o-text-overflow: ellipsis
  }

  .news-list ul>li .tip {
    font-size: 12px;
    height: 54px;
    line-height: 18px;
    color: #666;
    overflow: hidden;
    margin-bottom: 20px
  }

  .news-list ul>li .more {
    font-size: 12px;
    color: #666;
    border-top: 1px solid #ededed;
    height: 58px;
    line-height: 58px
  }

  .news-list ul>li .more:before {
    display: block;
    float: right;
    content: '+';
    width: 31px;
    height: 10px;
  }

  .news-view {
    margin: 25px auto;
    padding: 40px 60px;
    background-color: #fff
  }

  .news-view .title {
    position: relative;
    width: 100%;
    border-bottom: 1px solid #efefef;
    padding-bottom: 30px
  }

  .news-view .title .tit {
    font-size: 30px;
    line-height: 30px;
    color: #666;
    margin-bottom: 10px
  }

  .news-view .title .time {
    font-size: 12px;
    line-height: 18px;
    color: #999
  }

  .news-view .title .share {
    position: absolute;
    right: 0;
    bottom: 30px
  }

  .news-view .title .share .icon {
    display: block;
    float: left;
    margin-left: 8px;
    width: 28px;
    height: 28px;
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    border-radius: 15px;
    border: 1px solid #ccc;

  }

  .news-view .title .share .icon:hover {
    cursor: pointer;
    border-color: #f8b62b
  }

  .news-view .title .share .icon-weibo {
    background-position: -97px -109px
  }

  .news-view .title .share .icon-wechat {
    background-position: -97px -140px
  }

  .news-view .content {
    padding: 30px 0
  }
</style>
